package br.com.mftc.efitness.beans;

import java.util.List;

import javax.annotation.PostConstruct;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.ManagedProperty;
import javax.faces.bean.ViewScoped;

import br.com.mftc.efitness.basicas.Academia;

@ManagedBean(name = "consultarAcademias")
@ViewScoped
public class ConsultarAcademiasBean {

	@ManagedProperty("#{mensagens}")
	private MensagensBean mensagens;

	@ManagedProperty("#{fachada}")
	private FachadaBean fachada;

	private List<Academia> academias;
	private List<Academia> academiasSelecionadas;
	private String filtroNomeFantasia;
	
	@PostConstruct
	public void inicializar() {
		filtroNomeFantasia = new String("");
		
		consultarAcademias();
	}
	
	public void consultarAcademias() {
		
	}
	
	public List<Academia> getAcademias() {
		return academias;
	}

	public void setAcademias(List<Academia> academias) {
		this.academias = academias;
	}

	public List<Academia> getAcademiasSelecionadas() {
		return academiasSelecionadas;
	}

	public void setAcademiasSelecionadas(List<Academia> academiasSelecionadas) {
		this.academiasSelecionadas = academiasSelecionadas;
	}

	public String getFiltroNomeFantasia() {
		return filtroNomeFantasia;
	}

	public void setFiltroNomeFantasia(String filtroNomeFantasia) {
		this.filtroNomeFantasia = filtroNomeFantasia;
	}

	public MensagensBean getMensagens() {
		return mensagens;
	}

	public void setMensagens(MensagensBean mensagens) {
		this.mensagens = mensagens;
	}

	public FachadaBean getFachada() {
		return fachada;
	}

	public void setFachada(FachadaBean fachada) {
		this.fachada = fachada;
	}
}
